package com.demo.design.behavioral.visitor;

import com.demo.design.behavioral.visitor.impl.ConcreteVisitor;
import com.demo.design.behavioral.visitor.impl.PaperElement;

public class VisitorMain {

    public static void main(String[] args) {
        ElementStructure elementStructure = new ElementStructure();
        Element paper = new PaperElement();
        elementStructure.setElement(paper);
        Visitor visitor = new ConcreteVisitor();
        elementStructure.visit(visitor);
    }
}
